<div class="paging">
    <?php
    echo $this->Paginator->options(array('update' => '#beneficiarios', 'evalScripts' => false));
    echo $this->Paginator->prev('< ' . __('Anterior'), array(), null, array('class' => 'prev disabled'));
    echo $this->Paginator->numbers(array('separator' => ''));
    echo $this->Paginator->next(__('Siguiente') . ' >', array(), null, array('class' => 'next disabled'));
    ?>
</div>
<table id="tabla">
    <thead>
        <tr>
            <th><?php echo $this->Paginator->sort('Tipo', 'Tipo identificación') ?></th>
            <th><?php echo $this->Paginator->sort('Número', 'Número') ?></th>
            <th><?php echo $this->Paginator->sort('Primer nombre', 'Nombres ') ?></th>
            <th><?php echo $this->Paginator->sort('Segundo nombre', 'Nombres ') ?></th>
            <th><?php echo $this->Paginator->sort('Primer apellido', 'Primer apellido') ?></th>
            <th><?php echo $this->Paginator->sort('Teléfono', 'Télefono') ?></th>
            <th><?php echo $this->Paginator->sort('Dirección', 'Dirección') ?></th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($Candidates as $Candidate): ?>
            <tr>
                <td><?php
        switch ($Candidate['Candidate']['tipo_ident']) {
            case 1:

                break;
            case 2:

                break;

            default:
                break;
        }
            ?></td>
                <td><?php echo $Candidate['Candidate']['nro_ident'] ?></td>
                <td><?php echo $Candidate['Candidate']['1er_nombre'] ?></td>
                <td><?php echo $Candidate['Candidate']['2do_nombre'] ?></td>
                <td><?php echo $Candidate['Candidate']['1er_apellido'] ?></td>
                <td><?php echo $Candidate['Candidate']['telefono'] ?></td>
                <td><?php echo $Candidate['Candidate']['direccion'] ?></td>
                <td>
                    <?php echo $this->Ajax->link("Editar", array('controller' => 'Candidates', "action" => "follow_edit", $Candidate['Candidate']['id']), array('update' => 'beneficiarios', 'indicator' => 'loading', 'class' => 'actions')) ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php echo $this->Js->writeBuffer() ?>